package com.v5ent.mongo4j.web.vo;

import com.v5ent.mongo4j.entity.User;

import java.util.List;

public class Result<T> {
    private ResultCode resultCode;
    private T data;

    public Result(ResultCode resultCode, T data) {
        this.resultCode = resultCode;
        this.data = data;
    }

    public Result(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
